package com.cn.service;

import com.cn.entity.Works;
import com.cn.entity.Works_Comment;
import com.cn.vo.WorksVo.Collect;
import com.cn.vo.WorksVo.Comment;
import com.cn.vo.WorksVo.Like;
import com.cn.vo.WorksVo.Report;

import java.util.List;

public interface IWorkService {
    int publishWorks(Works works);
    int deleteWorks(int UserId,int WorksId);
    int giveLike(Like like);
    List<Like> showLike ();
//    List<Like> showLikeById ();
    int deleteLike(int workIdsId,String likeName);
    int cancelLike(int WorkId,int likeId);

    List<Works_Comment> showAllComments();

    List<Works_Comment> showAllCommentByAdmin( String userName);



    int writeComment(Comment comment);

    int deleteComment(int WorksId,int CommentId);

    int collectWorks(Collect collect);

    int deleteCollect(int WorksId,int CollectorId);

//    int transmitComment(int UserId,int WorksId);

    List<Report> showReport();

    int giveReport(Report report);
}
